package com.otherTest.ternaryoperator;

import org.junit.Test;


/**
 * @Description: 三目运算符
 * @author: conceit
 * @Date: 2018/9/11 0011 15:01
 */
public class TernaryOperator {


    /**
     * @Description: 比较两个值的大小，如果a大于b 则输出a,反之则输出b
     * @author: conceit
     * @return: void
     * @Date: 2018/9/11 15:04
     */
    @Test
    public void doTestOne() {

        int a = 1, b = 8;
        System.out.println(a > b ? a : b);

    }
}
